package com.liugl.helloworld

class Student(name: String = "", age: Int = 0, sex: SEX = SEX.MALE) : Person(name, age, sex),
    Study {
    constructor(name: String) : this(name, 0, SEX.MALE) {}

    constructor() : this("") {}

    override fun doHomework() {
        println("$name is doing homework")
    }

    override fun readBooks() {
        println("$name is reading books")
    }

}